package com.jic.market.mapper;

import com.jic.market.orm.BaseMapper;
import com.jic.market.entity.PromotionGiftItemEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PromotionGiftItemEntityMapper extends BaseMapper<PromotionGiftItemEntity>{

    void deletGiftItemByStoreIdsAndPromotionId(@Param("storeIds") List<Long> storeIds, @Param("promotionId") Long promotionId);
    void deletGiftItemByPromotionId( @Param("promotionId") Long promotionId);

    int insertBatch( @Param("items") List<PromotionGiftItemEntity> items);
}